package utils

import (
	"github.com/sirupsen/logrus"
)

var Log *logrus.Logger

func init() {
	//常规运行日志
	Log = LoadLogs("logs", "run.log")
}

func LoadLogs(path string, fileName string) (log *logrus.Logger) {
	log = logrus.New()
	run := CFile(path, fileName)
	log.Out = run
	return
}
